package JAVACORE_TRAINING.OOPs.CONSTRUCTORS;

public class Student {
	int RollNo;
	String FullName;
	int Age;
		
	Student()    //default Constructor
	{
		RollNo = 0;
		FullName = "";
		Age = 0;
	}	
	
	Student(int rollNo, String fullName, int age)   //constructor overloaded
	{
		RollNo = rollNo;
		FullName = fullName;
		Age = age;
	}
	
	Student(Student obj)   //constructor similar to copy constructor of c++
	{
		RollNo = obj.RollNo;
		FullName = obj.FullName;
		Age = obj.Age;
	}
	
	@Override
	public String toString() {
		return "RollNo: "+ RollNo +" - FullName: "+ FullName + " - Age: "+ Age;
	}
}

